@keyframes boxKey {
  from {
    transform: translateY(60%);
  }
  to {
    transform: translateY(0%);
  }
}

.conversationInitWrap {
  position: relative;
  width: 100%;
  height: auto;
  height: calc(100vh - 48px);
  padding: 20px 0;
  overflow: auto;
  // height: calc(100vh - 108px);
  background: #f7f7fa;
  .conversationInitBox {
    position: relative;
    width: 860px;
    // height: calc(100vh - 368px);
    min-height: 600px;
    margin: 0 auto;
    background: #f1f5f9;
    border: 1px solid rgba(0, 117, 255, 0.19);
    border-radius: 8px;
    box-shadow: 3px 2px 34px 0px rgba(61, 68, 133, 0.15);
    animation: boxKey 0.5s ease;
    .conversationInitTitle {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1000;
      box-sizing: border-box;
      width: 100%;
      height: 52px;
      padding-left: 31px;
      color: #3e4352;
      font-weight: 600;
      font-size: 16px;
      font-family: PingFangSC-Semibold, PingFang SC;
      line-height: 52px;
      background: #fdfefe;
      border-radius: 20px 20px 0 0;
      box-shadow: 0px 2px 4px 0px rgba(25, 26, 43, 0.1);
    }
    .commandCon {
      box-sizing: border-box;
      width: 100%;
      height: calc(100vh - 340px);
      padding: 78px 22px 26px;
      overflow-y: auto;
      // &::-webkit-scrollbar {
      //   width: 8px; /* 设置滚动条宽度 */
      // }
      // &::-webkit-scrollbar-thumb {
      //   background-color: #888; /* 设置滚动条滑块颜色 */
      //   border-radius: 4px; /* 设置滚动条滑块的圆角 */
      // }
      // &::-webkit-scrollbar-track {
      //   background-color: #f1f1f1; /* 设置滚动条轨道颜色 */
      //   border-radius: 4px; /* 设置滚动条轨道的圆角 */
      // }

      .commandList {
        display: flex;
        align-content: center;
        align-items: flex-start;
        justify-content: flex-start;
        box-sizing: border-box;
        margin-right: 12%;
        margin-bottom: 0;
        // width: 88%;
        padding: 10px 12px;
        .commandList-hd {
          margin-right: 14px;
          .avatar {
            width: 42px;
            vertical-align: middle;
          }
        }
        .commandList-bd {
          width: auto;
          height: auto;
          padding: 12px 20px;
          color: #3e4352;
          font-weight: 400;
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC;
          line-height: 22px;
          overflow-wrap: break-word;
          background: #ffffff;
          border-radius: 0px 10px 10px 10px;
          p {
            margin-bottom: 0;
          }
          .demoTitle {
            margin: 5px 0 10px 5px;
            color: #3e4352;
            font-weight: 600;
            font-size: 14px;
            font-family: PingFangSC-Semibold, PingFang SC;
            line-height: 20px;
          }
          .guideTitle {
            color: #3e4352;
            font-weight: 400;
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
            line-height: 22px;
          }
          .guideInfo {
            color: #3e4352;
            font-weight: 400;
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
            line-height: 25px;

            .lookExampleBtn {
              color: #397bff;
              font-weight: 200;
              font-size: 14px;
              font-family: PingFangSC-Medium, PingFang SC;
              line-height: 20px;
              cursor: pointer;
            }
          }
          .tag {
            display: inline-block;
            margin: 0 5px;
            padding: 0px 5px;
            color: #3e4352;
            color: #3e4352;
            font-weight: 400;
            font-weight: 600;
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
            line-height: 22px;
            background: #d5e5fa;
            border-radius: 3px;
            &.redTag {
              background-color: #ddd5fa;
            }
            &.blueTag {
              background-color: #d5e5fa;
            }
          }
          .genConBox {
            width: 100%;
            .genCon {
              margin: 3px 0;
              color: #3e4352;
              font-weight: 400;
              font-size: 14px;
              font-family: PingFangSC-Regular, PingFang SC;
              line-height: 22px;
              vertical-align: middle;
            }
            .genConTip {
              position: relative;
              width: 100%;

              height: 22px;
              padding-top: 6px;
              color: #3e4352;
              font-weight: 400;
              font-size: 12px;
              font-family: PingFangSC-Regular, PingFang SC;
              line-height: 22px;
              opacity: 0.5;
              &:before {
                position: absolute;
                top: 0;
                left: -20px;
                width: calc(100% + 40px);
                height: 1px;
                background-color: #979797;
                opacity: 0.3;
                content: '';
              }
            }
          }
          .paragraphDemoBox {
            position: relative;
            width: 100%;
            line-height: 3.6em;
            .paragraphDemoList {
              position: relative;
              display: inline;
              width: auto;
              margin-right: 5px;
              border-bottom: 1px solid #ccc;
              .tag {
                position: absolute;
                top: 18px;
                left: 0px;
                margin: 0;
                white-space: nowrap;
              }
              &.blueBorder {
                border-bottom: 1px solid #b6cdeb;
              }
              &.redBorder {
                border-bottom: 1px solid #cd9de7;
              }
            }
          }
        }
        //文件对应的参考方向
        .writingSelect {
          width: auto;
          padding: 12px 20px;
          background: #ffffff;
          border-radius: 0px 10px 10px 10px;
          .writingSelectTitle {
            padding: 5px 0 5px;
            color: #3e4352;
            font-weight: 400;
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
          }
          .writingSelectList {
            width: 100%;
            margin-top: 10px;
            margin-bottom: 5px;
            span {
              display: inline-block;
              height: 28px;
              margin-right: 15px;
              padding: 0 20px;
              color: #397bff;
              font-weight: 500;
              font-size: 14px;
              font-family: PingFangSC-Medium, PingFang SC;
              line-height: 28px;
              background: rgba(57, 123, 255, 0.1);
              border: 1px solid rgba(57, 123, 255, 0.26);
              border-radius: 6px;
              cursor: pointer;
              &.typeDisable {
                color: rgba(0, 0, 0, 0.25);
                background-color: rgba(0, 0, 0, 0.04);
                border-color: rgba(0, 0, 0, 0.04);
                cursor: not-allowed;
              }
            }
          }
        }
      }
      .userCommand {
        justify-content: flex-end;
        margin-right: 0;
        margin-left: 12%;
        .commandList-hd {
          margin-right: 0;
          margin-left: 14px;
        }
        .commandList-bd {
          background: #b7d9ff;
          border-radius: 10px 0px 10px 10px;
        }
      }
      .articleNumBox {
        width: 100%;
        padding: 15px 16px;
        background: #ffffff;
        border-radius: 8px;

        .articleNumTitle {
          display: inline-block;
          width: auto;
          margin: 0 20px 0 0px;
          color: #3e4352;
          font-weight: 600;
          font-size: 14px;
          font-family: PingFangSC-Semibold, PingFang SC;
          line-height: 20px;
        }
        .articleNumList {
          display: inline-flex;
          align-content: center;
          align-items: center;
          justify-content: flex-start;
          width: auto;
          margin: 10px 0 6px;
          .articleNumList-hd {
            width: 150px;
          }
          .articleNumList-bd {
            flex: 1;
            color: #3e4352;
            font-weight: 400;
            font-size: 12px;
            font-family: PingFangSC-Regular, PingFang SC;
            line-height: 20px;
            .ant-select {
              text-align: center;
            }
          }
        }
      }
    }
    .commandSend {
      box-sizing: border-box;
      width: 100%;
      height: 250px;
      padding: 16px 26px;
      background-color: #f1f5f9;
      border-top: 1px dashed rgba(151, 151, 151, 0.3);
      border-radius: 0 0 8px 8px;
      .sendTypeTogg {
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        .sendTypeTogg-hd {
          color: #3e4352;
          font-weight: 600;
          font-size: 14px;
          font-family: PingFangSC-Semibold, PingFang SC;
          line-height: 20px;
        }
        .sendTypeTogg-bd {
          color: #3e4352;
          font-weight: 500;
          font-size: 14px;
          font-family: PingFangSC-Medium, PingFang SC;
          line-height: 20px;
        }
      }
      .sendConBox {
        width: 100%;
        // height: 310px;
        margin-top: 12px;
        overflow: auto;
      }
      .submitBox {
        width: 100%;
        margin-top: 18px;
        text-align: center;
        .ant-btn {
          width: 152px;
        }
      }
    }
  }
  .returnBtn {
    position: absolute;
    top: 0;
    left: -60px;
  }
}
// 底部输入是是表单
.bottomLong {
  overflow: hidden;
  .conversationInitBox {
    .commandCon {
      // height: auto;
      height: calc(100vh - 520px);
      // min-height: calc(100vh - 340px);
    }
    .commandSend {
      // height: auto;
      height: 440px;
      overflow: auto;
      .sendConBox {
        height: 310px;
      }
    }
  }
}
//新闻稿 一行的情况下
.bottomShort {
  overflow: hidden;
  .conversationInitBox {
    .commandCon {
      // height: auto;
      // height: calc(100vh - 520px);
      min-height: calc(100vh - 340px);
    }
    .commandSend {
      // height: auto;
      height: 250px;
      overflow: auto;
      .sendConBox {
        height: 120px;
      }
    }
  }
}

// 处于生成模式 底部隐藏
.bottomNo {
  .conversationInitBox {
    height: calc(100vh - 148px);
    .commandCon {
      height: calc(100vh - 150px);
    }
  }
}

.startGenerateBox {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  margin: 0px 0 0px;
  text-align: center;
  background-color: #f7f7fa;
  // background-color: #ccc;
  .ant-btn {
    width: 152px;
    margin-top: 10px;
  }
}
.loadingBox {
  position: absolute;
  z-index: 1;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 20px 0;
  color: #3e4352;
  text-align: center;
}
